package com.ghsc.ghxc.jsb.ui.home.bean

/**
 * 项目：GuoHuaJsb
 * 包名：com.ghsc.ghxc.jsb.ui.home.bean
 * 类名：HomeBeanData
 * 创建时间：2024/4/24 14:15
 * 创建人 @author： xiaolin
 * 描述 ：Todo...
 */


data class HomeBannerLunBoResult(
    val `data`: HomeBeanData,
    val list: List<BannerBean>
)

class Tk

data class HomeBeanData(
    val footcat: MutableList<Footcat>,
    val topcat: List<Topcat>
)

data class BannerBean(
    val canshu: String,
    val ifexternal: Int,
    val images: String,
    val ltype: Int,
    val memo: String,
    val ptype: Int,
    val title: String,
    val url: String,
    val video: String
)

data class Footcat(
    val cid: Int,
    val images: String,
    val name: String,
    var isCheck: Boolean=false,
    val url: String
)

data class Topcat(
    val catename: String,
    val cid: Int
)



data class GoodsResultData(
    val `data`: Data,
    val list: List<GoodBeanData>
)


class Data

data class GoodBeanData(
    val image11: String,
    val image169: String,
    val memo: String,
    val oriprice: String,
    val pid: String,
    val price: String,
    val resstock: String,
    val salecnt: String,
    val stock: String,
    val title: String
)




data class CommodityDetailBean(
    val daojishi: Int,
    val detail: String,
    val ifonsale: Int,
    val images: String,
    val memo: String,
    val miaoshatype: Int,
    val oriprice: Double,
    val pid: String,
    val price: Double,
    val proinfo: String,
    val resstock: Int,
    val salecnt: Int,
    val shoucang: Int,
    val status: Int,
    val stock: Int,
    val title: String,
    val xiangou: Int,
    val xiangoumemo: String,
    var img: String,
)


data class SkuBean(
    val id: String,
    val name: String,
    val price: Double,
    val image: String,
    val resstock: Int,
    val data :MutableList<SkuItemBean>,
    var isSelected: Boolean = false,
){
    override fun toString(): String {
        return "SkuBean(name='$name', price=$price, image='$image', resstock=$resstock, data=$data)"
    }
}


data class SkuItemBean(
    val type: String?,
    val list: MutableList<SkuItemSelectBean>?
){
    override fun toString(): String {
        return "SkuItemBean(type=$type, list=$list)"
    }
}
data class SkuItemSelectBean(
    val type: String,
    val name: String,
    var isSelected: Boolean = false
){
    override fun toString(): String {
        return "SkuItemSelectBean(type=$type, name='$name', isSelected=$isSelected)"
    }
}

data class GetSkuBean(
    val dancimax: String,
    val images: String?,
    val oriprice: String,
    val price: String?,
    var resstock: String?,
    val salecnt: String,
    val skuid: String?,
    val skuvalue: String?,
    val stock: String,
    val pay_jifen:Double,
)




data class ResultSku(
    val `data`: Map<String,Any>,
    val list: List<Any>
)



data class PrepareResult(
    val `data`: PrepareBuyBean,
    val list: List<Any>
)


data class PrepareBuyBean(
    val bonusinfo: Bonusinfo,
    val ginfo: Ginfo,
    val kdinfo: Kdinfo
)

class Bonusinfo

data class Ginfo(
    val cnt: Int,
    val images: String,
    val miaoshatype: Int,
    val mobanid: Int,
    val oriprice: Double,
    val price: Double,
    val skuprice: Double,
    val skuvalue: String,
    val title: String,
    val totalprice: Double,
    val yunfei: Double
)

data class Kdinfo(
    val chengshi: String,
    val id: Int,
    val mobile: String,
    val name: String,
    val province: String,
    val site: String
)


data class EarnIntegralResult(
    val `data`: EarnIntegralData,
    val list: List<Any>
)


data class EarnIntegralData(
    val cnt: Int,
    val ggcnt: Int,
    val jifen: Double,
    val pstatus: Int,
    val rules: List<String>,
    val st: List<St>
)

data class St(
    val act: String,
    val icon: String,
    val ifhide: Int,
    val memo: String,
    val title: String,
    val url: String
)

data class SignInBean(
    val data: SignIn,
    val list:MutableList<Any>,
)

data class SignIn(
    val pstatus: Int,
    val msg: String,
)


data class TasksStateResult(
    val count: Int,
    val is_finish: Boolean,
    val name: String,
    val price: Double,
    val target: Int,
    val type: String
)



